import request from '@/utils/request'

// 查询流程列表
export function listFlowtemp(query) {
  return request({
    url: '/flow/flowtemp/list',
    method: 'get',
    params: query
  })
}

// 查询流程详细
export function getFlowtemp(guid) {
  return request({
    url: '/flow/flowtemp/' + guid,
    method: 'get'
  })
}




// 新增流程
export function addFlowtemp(data) {
  return request({
    url: '/flow/flowtemp',
    method: 'post',
    data: data
  })
}

// 修改流程
export function updateFlowtemp(data) {
  return request({
    url: '/flow/flowtemp',
    method: 'put',
    data: data
  })
}

// 删除流程
export function delFlowtemp(guid) {
  return request({
    url: '/flow/flowtemp/' + guid,
    method: 'delete'
  })
}

// 导出流程
export function exportFlowtemp(query) {
  return request({
    url: '/flow/flowtemp/export',
    method: 'get',
    params: query
  })
}
